﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Furniture_Rental_System
{
    public partial class SysAdminForm : Form
    {
        public SysAdminForm()
        {
            InitializeComponent();
        }

        private void buttonExecuteSQL_Click(object sender, EventArgs e)
        {
            String theSqlStatement = this.textBoxSQL.Text;
            DataBaseAccessor sysAdminExecuteSql = new DataBaseAccessor();
            String sqlResult = sysAdminExecuteSql.sysAdminExecuteSql(theSqlStatement);
            this.textBoxQueryResults.Text = sqlResult;
        }
    }
}
